﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<CRM.Database.Model.Settlements>" %>



<% Html.DevExpress().ComboBox(sss =>
                                    {
                                        sss.Name = "IdRegion";
                                        sss.Properties.ValueType = typeof (int);
                                        sss.CallbackRouteValues = new { Action = "regionCallback", key = Model.IdSettlement };
                                        sss.Properties.ValueField = "IdRegion";
                                        sss.Properties.TextField = "NameRu";
                                        sss.Width = new Unit(200);
                                        sss.Properties.ClientSideEvents.BeginCallback = "function(s, e) { e.customArgs['profineRegion'] = IdProfineRegion.GetValue(); }";
                                        sss.Properties.ClientSideEvents.EndCallback = "function(s, e) { IdSettlement.PerformCallback(); }";
                                        sss.Properties.ClientSideEvents.SelectedIndexChanged = "function(s, e) { IdSettlement.PerformCallback();  }";
                                    }).BindList(Model.Regions.profineRegions.Regions).Bind(Model.IdRegion).GetHtml();%>
